/** @file Math.js
@brief The math methods used by the framework

The calculation formulas to manage sizes, defaults, dimensions etc
can be found in this library divided in sections.
Are excluded from the Math library the MapView functions and the Geometry functions
The math methods are grouped following their primary usage
@todo The math properties and methods should be revised to apply the Geometry to
the actually wired values.

@authorname \n
@licenseversion \n
@actualversion - @dateupdate

@licensenote
*/
.pragma library

/**
    @var var sw_TxtColor, sw_popBackColor, sw_popBorderColor, sw_TitleColor
    @brief Switch predefined property.

    The framework uses several switch methods and elements to manage the
    switch and multi switch objects.

    @todo set the fixed properties as variable parameters.
*/
var sw_TxtColor =  "#363636" // Label text color
var sw_popBackColor = "#fbfadf";
var sw_popBorderColor = "#f7f7f7";
var sw_TitleColor = "#363636";

/**
    @var var mb_formBorder, mb_fieldSpacing, mb_formSpacing, mb_fieldHeight, mb_textHeight, mb_formRadius
    @brief Message Box builder parameters
    @todo Set the messagebox object controlled by the geometry.
*/
var mb_formBorder = 3;
var mb_fieldSpacing = 1;
var mb_formSpacing = 5;
var mb_fieldHeight = 55;
var mb_BtnHeight = 45;
var mb_textHeight = 35;
var mb_formRadius = 5;

/**
    @fn getMsgBoxBtnWidth(size)
    @brief Method used by messagebox object
    @param size The size of the screen area from the calling program.
    @return The new size in pixels.
    @todo Set the messagebox methods controlled by the geometry.
  */
function getMsgBoxBtnWidth(size) { return Math.round(size * 0.60); }
/**
    @fn getMsgBoxBtnHeight(size)
    @brief Method used by messagebox object
    @param size The size of the screen area from the calling program.
    @return The property value in pixels.
    @todo Set the messagebox methods controlled by the geometry.
  */
function getMsgBoxBtnHeight(size) { return mb_BtnHeight; }
/**
    @fn getMsgBoxBtnBottomMargin()
    @brief Method used by messagebox object
    @return The requested value in pixels.
    @todo Set the messagebox methods controlled by the geometry.
  */
function getMsgBoxBtnBottomMargin() { return mb_formBorder * 2; }
